home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
DTP
/
DTP_TEX
/
H220.ZIP
/
ITRNS211.ZIP
/
SRC
/
LEXYYC
< prev
next >
Wrap
Text File
|
1991-12-14
|
58KB
|
1,976 lines
/* A lexical scanner generated by flex */
/* scanner skeleton version:
* $Header: /usr/fsys/odin/a/vern/flex/RCS/flex.skel,v 2.16 90/08/03 14:09:36 vern Exp $
*/
#define FLEX_SCANNER
#include <stdio.h>
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
#ifdef c_plusplus
#ifndef __cplusplus
#define __cplusplus
#endif
#endif
#ifdef __cplusplus
#include <stdlib.h>
#include <osfcn.h>
/* use prototypes in function declarations */
#define YY_USE_PROTOS
/* the "const" storage-class-modifier is valid */
#define YY_USE_CONST
#else /* ! __cplusplus */
#ifdef __STDC__
#ifdef __GNUC__
#include <stddef.h>
void *malloc( size_t );
void free( void* );
#else
#include <stdlib.h>
#endif /* __GNUC__ */
#define YY_USE_PROTOS
#define YY_USE_CONST
#endif /* __STDC__ */
#endif /* ! __cplusplus */
#ifdef __TURBOC__
#define YY_USE_CONST
#endif
#ifndef YY_USE_CONST
#define const
#endif
#ifdef YY_USE_PROTOS
#define YY_PROTO(proto) proto
#else
#define YY_PROTO(proto) ()
/* we can't get here if it's an ANSI C compiler, or a C++ compiler,
* so it's got to be a K&R compiler, and therefore there's no standard
* place from which to include these definitions
*/
char *malloc();
int free();
int read();
#endif
/* amount of stuff to slurp up with each read */
#ifndef YY_READ_BUF_SIZE
#define YY_READ_BUF_SIZE 8192
#endif
/* returned upon end-of-file */
#define YY_END_TOK 0
/* copy whatever the last rule matched to the standard output */
/* cast to (char *) is because for 8-bit chars, yytext is (unsigned char *) */
/* this used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite()
*/
#define ECHO (void) fwrite( (char *) yytext, yyleng, 1, yyout )
/* gets input and stuffs it into "buf". number of characters read, or YY_NULL,
* is returned in "result".
*/
#define YY_INPUT(buf,result,max_size) \
if ( (result = read( fileno(yyin), (char *) buf, max_size )) < 0 ) \
YY_FATAL_ERROR( "read() in flex scanner failed" );
#define YY_NULL 0
/* no semi-colon after return; correct usage is to write "yyterminate();" -
* we don't want an extra ';' after the "return" because that will cause
* some compilers to complain about unreachable statements.
*/
#define yyterminate() return ( YY_NULL )
/* report a fatal error */
/* The funky do-while is used to turn this macro definition into
* a single C statement (which needs a semi-colon terminator).
* This avoids problems with code like:
*
* if ( something_happens )
* YY_FATAL_ERROR( "oops, the something happened" );
* else
* everything_okay();
*
* Prior to using the do-while the compiler would get upset at the
* "else" because it interpreted the "if" statement as being all
* done when it reached the ';' after the YY_FATAL_ERROR() call.
*/
#define YY_FATAL_ERROR(msg) \
do \
{ \
(void) fputs( msg, stderr ); \
(void) putc( '\n', stderr ); \
exit( 1 ); \
} \
while ( 0 )
/* default yywrap function - always treat EOF as an EOF */
#define yywrap() 1
/* enter a start condition. This macro really ought to take a parameter,
* but we do it the disgusting crufty way forced on us by the ()-less
* definition of BEGIN
*/
#define BEGIN yy_start = 1 + 2 *
/* action number for EOF rule of a given start state */
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
/* special action meaning "start processing a new file" */
#define YY_NEW_FILE \
do \
{ \
yy_init_buffer( yy_current_buffer, yyin ); \
yy_load_buffer_state(); \
} \
while ( 0 )
/* default declaration of generated scanner - a define so the user can
* easily add parameters
*/
#define YY_DECL int yylex YY_PROTO(( void ))
/* code executed at the end of each rule */
#define YY_BREAK break;
#define YY_END_OF_BUFFER_CHAR 0
#ifndef YY_BUF_SIZE
#define YY_BUF_SIZE (YY_READ_BUF_SIZE * 2) /* size of default input buffer */
#endif
typedef struct yy_buffer_state *YY_BUFFER_STATE;
#define YY_CHAR char
# line 1 "ilex.l"
#define INITIAL 0
# line 6 "ilex.l"
/* above directives increase the various table sizes used by Lex */
/*
*==========================================================================
* Copyright 1991 Avinash Chopde, All Rights Reserved.
*
* Permission to use, copy, modify and distribute this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in supporting
* documentation, and that the name of Avinash Chopde not be used in
* advertising or publicity pertaining to distribution of the software
* without specific, written prior permission.
* Avinash Chopde makes no representations about the suitability of this
* software for any purpose.
* It is provided "as is" without express or implied warranty.
*
* AVINASH CHOPDE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
* IN NO EVENT SHALL AVINASH CHOPDE BE LIABLE FOR ANY SPECIAL, INDIRECT OR
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
* OF THIS SOFTWARE.
*
* Author: Avinash Chopde, 1991
* C2 Colonial Drive #4, Andover, MA 01810, USA.
*
*/
static char S_RCSID[] = "$Header: e:/itrans/src/rcs/ilex.l 1.8 91/10/15 00:13:49 avinash Exp $";
#include "itrans.h"
#include "ifm.h"
#ifdef MSDOS
#include "y_tab.h"
#else
#include "y.tab.h"
#endif
#ifdef YYSTYPE
extern YYSTYPE yylval;
#else
extern int yylval;
#endif
extern int G_lineno;
extern int in_letter(); /* returns TRUE if the parse (iyacc.y) is in the
* middle of scanning some letter.
* Used to decide whether to tell the parser to
* stop looking for more characters, and
* terminate the letter.
* That is done by sending in a ENDPREV_TOK.
*/
extern char G_endprev_str[]; /* defined in iyacc.y, used to pass string
* to process
*/
static S_lex_ichar(int t);
static S_print(char* t);
static S_skipcomments();
static int S_lang_tok = -1; /* which language being scanned... */
#define ITEXT 1
#define DCOMMAND 2
# line 74 "ilex.l"
/* done after the current pattern has been matched and before the
* corresponding action - sets up yytext
*/
#define YY_DO_BEFORE_ACTION \
yytext = yy_bp; \
yyleng = yy_cp - yy_bp; \
yy_hold_char = *yy_cp; \
*yy_cp = '\0'; \
yy_c_buf_p = yy_cp;
#define EOB_ACT_CONTINUE_SCAN 0
#define EOB_ACT_END_OF_FILE 1
#define EOB_ACT_LAST_MATCH 2
/* return all but the first 'n' matched characters back to the input stream */
#define yyless(n) \
do \
{ \
/* undo effects of setting up yytext */ \
*yy_cp = yy_hold_char; \
yy_c_buf_p = yy_cp = yy_bp + n; \
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
} \
while ( 0 )
#define unput(c) yyunput( c, yytext )
struct yy_buffer_state
{
FILE *yy_input_file;
YY_CHAR *yy_ch_buf; /* input buffer */
YY_CHAR *yy_buf_pos; /* current position in input buffer */
/* size of input buffer in bytes, not including room for EOB characters*/
int yy_buf_size;
/* number of characters read into yy_ch_buf, not including EOB characters */
int yy_n_chars;
int yy_eof_status; /* whether we've seen an EOF on this buffer */
#define EOF_NOT_SEEN 0
/* "pending" happens when the EOF has been seen but there's still
* some text process
*/
#define EOF_PENDING 1
#define EOF_DONE 2
};
static YY_BUFFER_STATE yy_current_buffer;
/* we provide macros for accessing buffer states in case in the
* future we want to put the buffer states in a more general
* "scanner state"
*/
#define YY_CURRENT_BUFFER yy_current_buffer
/* yy_hold_char holds the character lost when yytext is formed */
static YY_CHAR yy_hold_char;
static int yy_n_chars; /* number of characters read into yy_ch_buf */
#ifndef YY_USER_ACTION
#define YY_USER_ACTION
#endif
#ifndef YY_USER_INIT
#define YY_USER_INIT
#endif
extern YY_CHAR *yytext;
extern int yyleng;
extern FILE *yyin, *yyout;
YY_CHAR *yytext;
int yyleng;
FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
#define YY_END_OF_BUFFER 135
typedef int yy_state_type;
static const short int yy_accept[395] =
{ 0,
0, 0, 0, 0, 0, 0, 135, 133, 132, 4,
133, 85, 82, 83, 3, 85, 7, 42, 19, 32,
25, 10, 29, 66, 46, 22, 73, 85, 40, 12,
2, 5, 56, 85, 49, 18, 54, 31, 64, 8,
36, 26, 67, 57, 51, 21, 52, 27, 59, 63,
47, 11, 60, 69, 58, 37, 85, 87, 4, 86,
87, 1, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 80, 43, 81, 79, 78, 77, 76, 0,
44, 17, 16, 15, 14, 0, 41, 24, 6, 20,
23, 55, 35, 50, 30, 70, 9, 38, 39, 28,
0, 65, 72, 33, 71, 53, 62, 48, 13, 84,
86, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 45, 74, 75, 34, 68, 61, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 92, 0, 0, 0, 0, 106, 0, 94,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 92, 0, 0, 88, 0, 0,
0, 106, 0, 0, 0, 94, 0, 0, 100, 98,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 88, 0, 0, 108, 0, 90,
0, 0, 0, 0, 0, 100, 0, 0, 98, 0,
0, 0, 0, 93, 0, 0, 0, 0, 107, 0,
95, 0, 104, 0, 0, 0, 0, 108, 0, 0,
0, 90, 0, 0, 0, 0, 96, 0, 0, 0,
0, 0, 0, 0, 0, 93, 89, 0, 0, 0,
107, 0, 95, 101, 104, 0, 0, 0, 112, 0,
0, 0, 0, 102, 0, 0, 0, 119, 96, 0,
0, 0, 113, 0, 0, 0, 0, 99, 0, 89,
109, 0, 91, 0, 101, 0, 0, 122, 112, 0,
110, 0, 0, 102, 0, 0, 0, 0, 130, 119,
0, 0, 123, 113, 0, 116, 0, 115, 99, 105,
109, 0, 91, 97, 0, 0, 122, 121, 110, 0,
120, 0, 0, 0, 111, 130, 0, 0, 123, 127,
116, 126, 115, 105, 103, 97, 0, 118, 121, 131,
120, 0, 0, 124, 111, 0, 114, 127, 126, 103,
129, 118, 131, 0, 117, 124, 125, 114, 129, 128,
117, 125, 128, 0
} ;
static const YY_CHAR yy_ec[128] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 2, 1, 1, 1, 1, 4, 1, 1, 1,
1, 1, 1, 1, 5, 6, 1, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 1, 1, 1,
7, 1, 1, 1, 8, 9, 10, 11, 12, 9,
13, 14, 15, 9, 16, 17, 18, 19, 20, 9,
9, 21, 22, 23, 24, 9, 9, 9, 9, 9,
1, 25, 1, 26, 27, 1, 28, 29, 30, 31,
32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
42, 43, 44, 45, 46, 47, 48, 49, 9, 50,
51, 52, 53, 1, 54, 1, 1
} ;
static const YY_CHAR yy_meta[55] =
{ 0,
1, 1, 1, 1, 2, 2, 1, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 3, 1, 4, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 1, 1
} ;
static const short int yy_base[420] =
{ 0,
0, 2, 27, 0, 81, 135, 496, 497, 497, 497,
186, 497, 497, 497, 497, 81, 471, 459, 497, 497,
497, 497, 497, 74, 497, 497, 78, 472, 457, 497,
0, 76, 456, 455, 454, 497, 497, 62, 497, 452,
55, 82, 456, 497, 69, 497, 451, 497, 497, 450,
449, 435, 497, 497, 497, 497, 428, 497, 497, 0,
0, 497, 449, 439, 431, 442, 436, 448, 447, 429,
445, 70, 497, 437, 497, 497, 497, 497, 497, 453,
497, 497, 497, 497, 497, 455, 497, 497, 497, 497,
497, 497, 434, 497, 497, 497, 497, 497, 497, 497,
433, 497, 497, 497, 497, 497, 432, 497, 497, 497,
0, 425, 434, 427, 422, 431, 420, 60, 424, 418,
418, 418, 497, 497, 497, 497, 497, 497, 422, 205,
427, 423, 417, 411, 423, 422, 398, 402, 411, 398,
417, 412, 395, 406, 400, 412, 411, 393, 409, 87,
391, 399, 406, 405, 381, 384, 402, 391, 389, 393,
387, 384, 387, 382, 391, 380, 82, 384, 378, 378,
378, 388, 116, 374, 383, 385, 377, 121, 366, 123,
362, 373, 374, 379, 375, 369, 363, 375, 374, 350,
354, 363, 350, 350, 394, 353, 361, 130, 365, 353,
355, 388, 347, 355, 351, 384, 343, 351, 131, 141,
355, 337, 345, 352, 351, 327, 330, 348, 337, 335,
339, 336, 330, 330, 367, 326, 334, 142, 338, 143,
324, 324, 316, 321, 321, 358, 317, 325, 355, 314,
322, 315, 325, 350, 310, 319, 321, 313, 345, 301,
343, 296, 148, 296, 335, 300, 300, 337, 296, 304,
296, 333, 292, 300, 285, 324, 149, 283, 322, 287,
287, 278, 273, 268, 248, 290, 284, 255, 235, 232,
263, 226, 248, 247, 246, 204, 211, 235, 0, 191,
230, 195, 195, 163, 190, 190, 222, 0, 225, 183,
190, 212, 0, 170, 209, 167, 206, 210, 175, 208,
207, 180, 205, 159, 203, 163, 163, 0, 0, 195,
0, 154, 193, 196, 155, 162, 147, 186, 0, 0,
151, 151, 0, 0, 180, 0, 179, 0, 181, 178,
171, 132, 169, 168, 122, 161, 0, 0, 0, 151,
0, 114, 113, 141, 0, 0, 100, 139, 0, 0,
0, 0, 0, 129, 128, 127, 94, 0, 0, 0,
0, 53, 3, 0, 0, 2, 0, 0, 0, 6,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 497, 252, 256, 0, 259, 262, 265,
268, 271, 274, 277, 280, 283, 286, 289, 292, 295,
298, 301, 304, 307, 310, 313, 316, 319, 322
} ;
static const short int yy_def[420] =
{ 0,
395, 395, 394, 3, 396, 396, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
11, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 397,
11, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
397, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 398, 394,
394, 394, 394, 394, 394, 394, 394, 399, 394, 394,
394, 394, 400, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 401, 398, 394,
402, 394, 394, 394, 394, 394, 394, 394, 403, 399,
394, 394, 404, 400, 394, 405, 394, 406, 394, 394,
394, 394, 394, 394, 394, 394, 401, 407, 402, 394,
408, 394, 394, 394, 409, 403, 394, 394, 404, 410,
405, 411, 406, 394, 394, 394, 394, 412, 407, 413,
408, 394, 394, 414, 409, 394, 415, 410, 411, 394,
416, 412, 413, 394, 417, 414, 418, 415, 416, 419,
417, 418, 419, 0, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394
} ;
static const short int yy_nxt[552] =
{ 0,
394, 111, 9, 10, 9, 10, 390, 380, 387, 385,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 11, 394, 11, 12, 13, 14,
15, 12, 16, 12, 17, 12, 12, 18, 19, 20,
21, 22, 23, 24, 12, 25, 26, 27, 28, 29,
30, 31, 12, 12, 32, 33, 34, 35, 36, 37,
38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
48, 49, 50, 51, 52, 53, 54, 55, 56, 57,
12, 58, 58, 9, 59, 58, 58, 58, 82, 98,
73, 74, 84, 88, 103, 99, 95, 121, 135, 384,
381, 122, 104, 89, 136, 61, 58, 58, 75, 83,
76, 90, 96, 85, 170, 77, 100, 195, 171, 105,
188, 78, 202, 91, 206, 79, 189, 101, 366, 380,
364, 225, 236, 58, 58, 58, 58, 9, 59, 58,
58, 58, 239, 258, 262, 377, 376, 374, 196, 285,
299, 197, 373, 203, 372, 207, 204, 370, 208, 61,
58, 58, 226, 237, 324, 227, 238, 368, 367, 366,
343, 365, 341, 240, 259, 263, 241, 260, 264, 364,
286, 300, 339, 287, 301, 362, 360, 58, 58, 62,
358, 357, 355, 354, 353, 325, 352, 324, 326, 351,
350, 348, 346, 345, 315, 344, 343, 342, 341, 310,
340, 339, 338, 337, 63, 336, 335, 64, 333, 65,
66, 67, 332, 68, 331, 69, 299, 70, 329, 328,
327, 71, 72, 142, 323, 322, 321, 320, 143, 144,
145, 318, 146, 317, 147, 316, 148, 285, 315, 283,
149, 150, 8, 8, 8, 8, 60, 60, 60, 60,
319, 314, 319, 330, 281, 330, 334, 313, 334, 347,
347, 347, 349, 312, 349, 356, 356, 356, 359, 359,
359, 361, 311, 361, 363, 310, 363, 369, 369, 369,
371, 276, 371, 375, 309, 375, 378, 378, 378, 379,
379, 379, 382, 308, 382, 383, 383, 383, 386, 386,
386, 388, 307, 388, 389, 389, 389, 391, 306, 391,
392, 392, 392, 393, 393, 393, 305, 304, 303, 302,
298, 297, 296, 295, 262, 294, 293, 292, 258, 291,
290, 289, 288, 284, 283, 282, 281, 280, 279, 278,
277, 276, 275, 274, 273, 272, 239, 271, 270, 236,
269, 268, 267, 266, 265, 261, 257, 256, 225, 255,
254, 253, 252, 251, 250, 249, 248, 247, 246, 245,
244, 243, 242, 235, 234, 206, 233, 232, 231, 202,
230, 229, 228, 224, 223, 195, 222, 221, 220, 219,
218, 217, 216, 215, 214, 213, 212, 211, 210, 209,
205, 201, 200, 199, 198, 194, 193, 192, 191, 190,
187, 186, 185, 184, 183, 182, 181, 180, 179, 178,
177, 176, 175, 174, 173, 172, 169, 168, 167, 166,
165, 164, 163, 162, 161, 160, 159, 158, 157, 156,
155, 154, 153, 152, 151, 141, 140, 139, 138, 137,
134, 133, 132, 131, 130, 129, 128, 127, 126, 125,
124, 123, 120, 119, 118, 117, 116, 115, 114, 113,
112, 110, 109, 108, 107, 106, 102, 97, 94, 93,
92, 87, 86, 81, 80, 394, 7, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394
} ;
static const short int yy_chk[552] =
{ 0,
0, 397, 1, 1, 2, 2, 384, 380, 376, 373,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 1, 0, 2, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 5, 5, 5, 5, 5, 5, 5, 24, 41,
16, 16, 27, 32, 45, 41, 38, 72, 118, 372,
367, 72, 45, 32, 118, 5, 5, 5, 16, 24,
16, 32, 38, 27, 150, 16, 42, 173, 150, 45,
167, 16, 178, 32, 180, 16, 167, 42, 366, 365,
364, 198, 209, 5, 5, 6, 6, 6, 6, 6,
6, 6, 210, 228, 230, 358, 357, 354, 173, 253,
267, 173, 353, 178, 352, 180, 178, 350, 180, 6,
6, 6, 198, 209, 294, 198, 209, 346, 345, 344,
343, 342, 341, 210, 228, 230, 210, 228, 230, 340,
253, 267, 339, 253, 267, 337, 335, 6, 6, 11,
332, 331, 328, 327, 326, 294, 325, 324, 294, 323,
322, 320, 317, 316, 315, 314, 313, 312, 311, 310,
309, 308, 307, 306, 11, 305, 304, 11, 302, 11,
11, 11, 301, 11, 300, 11, 299, 11, 297, 296,
295, 11, 11, 130, 293, 292, 291, 290, 130, 130,
130, 288, 130, 287, 130, 286, 130, 285, 284, 283,
130, 130, 395, 395, 395, 395, 396, 396, 396, 396,
398, 282, 398, 399, 281, 399, 400, 280, 400, 401,
401, 401, 402, 279, 402, 403, 403, 403, 404, 404,
404, 405, 278, 405, 406, 277, 406, 407, 407, 407,
408, 276, 408, 409, 275, 409, 410, 410, 410, 411,
411, 411, 412, 274, 412, 413, 413, 413, 414, 414,
414, 415, 273, 415, 416, 416, 416, 417, 272, 417,
418, 418, 418, 419, 419, 419, 271, 270, 269, 268,
266, 265, 264, 263, 262, 261, 260, 259, 258, 257,
256, 255, 254, 252, 251, 250, 249, 248, 247, 246,
245, 244, 243, 242, 241, 240, 239, 238, 237, 236,
235, 234, 233, 232, 231, 229, 227, 226, 225, 224,
223, 222, 221, 220, 219, 218, 217, 216, 215, 214,
213, 212, 211, 208, 207, 206, 205, 204, 203, 202,
201, 200, 199, 197, 196, 195, 194, 193, 192, 191,
190, 189, 188, 187, 186, 185, 184, 183, 182, 181,
179, 177, 176, 175, 174, 172, 171, 170, 169, 168,
166, 165, 164, 163, 162, 161, 160, 159, 158, 157,
156, 155, 154, 153, 152, 151, 149, 148, 147, 146,
145, 144, 143, 142, 141, 140, 139, 138, 137, 136,
135, 134, 133, 132, 131, 129, 122, 121, 120, 119,
117, 116, 115, 114, 113, 112, 107, 101, 93, 86,
80, 74, 71, 70, 69, 68, 67, 66, 65, 64,
63, 57, 52, 51, 50, 47, 43, 40, 35, 34,
33, 29, 28, 18, 17, 7, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
394
} ;
static yy_state_type yy_last_accepting_state;
static YY_CHAR *yy_last_accepting_cpos;
/* the intent behind this definition is that it'll catch
* any uses of REJECT which flex missed
*/
#define REJECT reject_used_but_not_detected
#define yymore() yymore_used_but_not_detected
#define YY_MORE_ADJ 0
/* these variables are all declared out here so that section 3 code can
* manipulate them
*/
/* points to current character in buffer */
static YY_CHAR *yy_c_buf_p = (YY_CHAR *) 0;
static int yy_init = 1; /* whether we need to initialize */
static int yy_start = 0; /* start state number */
/* flag which is used to allow yywrap()'s to do buffer switches
* instead of setting up a fresh yyin. A bit of a hack ...
*/
static int yy_did_buffer_switch_on_eof;
static yy_state_type yy_get_previous_state YY_PROTO(( void ));
static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
static int yy_get_next_buffer YY_PROTO(( void ));
static void yyunput YY_PROTO(( YY_CHAR c, YY_CHAR *buf_ptr ));
void yyrestart YY_PROTO(( FILE *input_file ));
void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
void yy_load_buffer_state YY_PROTO(( void ));
YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
#define yy_new_buffer yy_create_buffer
#ifdef __cplusplus
static int yyinput YY_PROTO(( void ));
#else
static int input YY_PROTO(( void ));
#endif
YY_DECL
{
register yy_state_type yy_current_state;
register YY_CHAR *yy_cp, *yy_bp;
register int yy_act;
if ( yy_init )
{
YY_USER_INIT;
if ( ! yy_start )
yy_start = 1; /* first start state */
if ( ! yyin )
yyin = stdin;
if ( ! yyout )
yyout = stdout;
if ( yy_current_buffer )
yy_init_buffer( yy_current_buffer, yyin );
else
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
yy_load_buffer_state();
yy_init = 0;
}
while ( 1 ) /* loops until end-of-file is reached */
{
yy_cp = yy_c_buf_p;
/* support of yytext */
*yy_cp = yy_hold_char;
/* yy_bp points to the position in yy_ch_buf of the start of the
* current run.
*/
yy_bp = yy_cp;
yy_current_state = yy_start;
yy_match:
do
{
register YY_CHAR yy_c = yy_ec[*yy_cp];
if ( yy_accept[yy_current_state] )
{
yy_last_accepting_state = yy_current_state;
yy_last_accepting_cpos = yy_cp;
}
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = yy_def[yy_current_state];
if ( yy_current_state >= 395 )
yy_c = yy_meta[yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
++yy_cp;
}
while ( yy_current_state != 394 );
yy_cp = yy_last_accepting_cpos;
yy_current_state = yy_last_accepting_state;
yy_find_action:
yy_act = yy_accept[yy_current_state];
YY_DO_BEFORE_ACTION;
YY_USER_ACTION;
do_action: /* this label is used only to access EOF actions */
switch ( yy_act )
{
case 0: /* must backtrack */
/* undo the effects of YY_DO_BEFORE_ACTION */
*yy_cp = yy_hold_char;
yy_cp = yy_last_accepting_cpos;
yy_current_state = yy_last_accepting_state;
goto yy_find_action;
case 1:
# line 76 "ilex.l"
{
/* seen \% in the input, complete current
* word first, and then echo out
* the chars in G_endprev_str.
*/
if (in_letter()) {
S_print("ichar \\ %");
strcpy(G_endprev_str, "\\%");
return (yylval=ENDPREV_TOK);
} else {
ECHO;
}
}
YY_BREAK
case 2:
# line 90 "ilex.l"
{
/* seen a single backslash */
if (in_letter()) {
/* need to complete current word, send
* a ENDPREV token to the parser.
*/
S_print("ichar \\");
/* unput('\\'); ?? use yyless() here */
yyless(0);
G_endprev_str[0] = '\0';
return (yylval=ENDPREV_TOK);
} else {
BEGIN DCOMMAND;
}
}
YY_BREAK
case 3:
# line 106 "ilex.l"
{ S_print("ichar %");
if (in_letter()) {
/* need to complete current word, send
* a ENDPREV token to the parser.
*/
/* unput('%'); handle comment next time around */
yyless(0);
}
return S_skipcomments();
/* is a comment, until end-of-line */
}
YY_BREAK
case 4:
# line 118 "ilex.l"
{ S_skipcomments(); putchar('\n'); }
YY_BREAK
case 5:
# line 120 "ilex.l"
{S_lex_ichar(A_TOK); return (yylval = A_TOK); }
YY_BREAK
case 6:
# line 121 "ilex.l"
{S_lex_ichar(AA_TOK); return (yylval = AA_TOK);}
YY_BREAK
case 7:
# line 122 "ilex.l"
{S_lex_ichar(AA_TOK); return (yylval = AA_TOK);}
YY_BREAK
case 8:
# line 123 "ilex.l"
{S_lex_ichar(I_TOK); return (yylval = I_TOK); }
YY_BREAK
case 9:
# line 124 "ilex.l"
{S_lex_ichar(II_TOK); return (yylval = II_TOK);}
YY_BREAK
case 10:
# line 125 "ilex.l"
{S_lex_ichar(II_TOK); return (yylval = II_TOK);}
YY_BREAK
case 11:
# line 126 "ilex.l"
{S_lex_ichar(U_TOK); return (yylval = U_TOK); }
YY_BREAK
case 12:
# line 127 "ilex.l"
{S_lex_ichar(UU_TOK); return (yylval = UU_TOK);}
YY_BREAK
case 13:
# line 128 "ilex.l"
{S_lex_ichar(UU_TOK); return (yylval = UU_TOK);}
YY_BREAK
case 14:
# line 129 "ilex.l"
{
switch(S_lang_tok) {
case TAMIL_TOK:
/* unput('i'); ?? use yyless() here XXX */
yyless(1);
return (yylval = RRA_TOK);
break;
default:
return (yylval = RI_TOK);
}
}
YY_BREAK
case 15:
# line 140 "ilex.l"
{
switch(S_lang_tok) {
case TAMIL_TOK:
/* unput('I'); ?? use yyless() here XXX */
yyless(1);
return (yylval = RRA_TOK);
break;
default:
return (yylval = RII_TOK);
}
}
YY_BREAK
case 16:
# line 151 "ilex.l"
{
switch(S_lang_tok) {
case TAMIL_TOK:
/* unput('i'); ?? use yyless() here XXX */
yyless(1);
return (yylval = LDA_TOK);
break;
default:
return (yylval = LI_TOK);
}
}
YY_BREAK
case 17:
# line 162 "ilex.l"
{
switch(S_lang_tok) {
case TAMIL_TOK:
/* unput('I'); ?? use yyless() here XXX */
yyless(1);
return (yylval = LDA_TOK);
break;
default:
return (yylval = LII_TOK);
}
}
YY_BREAK
case 18:
# line 173 "ilex.l"
{S_lex_ichar(AY_TOK); return (yylval = AY_TOK);}
YY_BREAK
case 19:
# line 174 "ilex.l"
{S_lex_ichar(AAY_TOK); return (yylval = AAY_TOK);}
YY_BREAK
case 20:
# line 175 "ilex.l"
{S_lex_ichar(AI_TOK); return (yylval = AI_TOK);}
YY_BREAK
case 21:
# line 176 "ilex.l"
{S_lex_ichar(O_TOK); return (yylval = O_TOK); }
YY_BREAK
case 22:
# line 177 "ilex.l"
{S_lex_ichar(OO_TOK); return (yylval = OO_TOK);}
YY_BREAK
case 23:
# line 178 "ilex.l"
{S_lex_ichar(AU_TOK); return (yylval = AU_TOK);}
YY_BREAK
case 24:
# line 179 "ilex.l"
{S_lex_ichar(AM_TOK); return (yylval = AM_TOK);}
YY_BREAK
case 25:
# line 180 "ilex.l"
{S_lex_ichar(AHA_TOK); return (yylval = AHA_TOK);}
YY_BREAK
case 26:
# line 181 "ilex.l"
{S_lex_ichar(KA_TOK); return (yylval = KA_TOK);}
YY_BREAK
case 27:
# line 182 "ilex.l"
{S_lex_ichar(KADOT_TOK); return (yylval = KADOT_TOK);}
YY_BREAK
case 28:
# line 183 "ilex.l"
{S_lex_ichar(KHA_TOK); return (yylval = KHA_TOK);}
YY_BREAK
case 29:
# line 184 "ilex.l"
{S_lex_ichar(KHADOT_TOK); return (yylval = KHADOT_TOK);}
YY_BREAK
case 30:
# line 185 "ilex.l"
{S_lex_ichar(GHA_TOK); return (yylval = GHA_TOK);}
YY_BREAK
case 31:
# line 186 "ilex.l"
{S_lex_ichar(GA_TOK); return (yylval = GA_TOK);}
YY_BREAK
case 32:
# line 187 "ilex.l"
{S_lex_ichar(GADOT_TOK); return (yylval = GADOT_TOK);}
YY_BREAK
case 33:
# line 188 "ilex.l"
{S_lex_ichar(NGA_TOK); return (yylval = NGA_TOK);}
YY_BREAK
case 34:
# line 189 "ilex.l"
{S_lex_ichar(CHHA_TOK); return (yylval = CHHA_TOK);}
YY_BREAK
case 35:
# line 190 "ilex.l"
{S_lex_ichar(CHA_TOK); return (yylval = CHA_TOK);}
YY_BREAK
case 36:
# line 191 "ilex.l"
{S_lex_ichar(JA_TOK); return (yylval = JA_TOK);}
YY_BREAK
case 37:
# line 192 "ilex.l"
{S_lex_ichar(JADOT_TOK); return (yylval = JADOT_TOK);}
YY_BREAK
case 38:
# line 193 "ilex.l"
{S_lex_ichar(JHA_TOK); return (yylval = JHA_TOK);}
YY_BREAK
case 39:
# line 194 "ilex.l"
{S_lex_ichar(JNH_TOK); return (yylval = JNH_TOK);}
YY_BREAK
case 40:
# line 195 "ilex.l"
{S_lex_ichar(TTA_TOK); return (yylval = TTA_TOK);}
YY_BREAK
case 41:
# line 196 "ilex.l"
{S_lex_ichar(TTHA_TOK); return (yylval = TTHA_TOK);}
YY_BREAK
case 42:
# line 197 "ilex.l"
{S_lex_ichar(DDA_TOK); return (yylval = DDA_TOK);}
YY_BREAK
case 43:
# line 198 "ilex.l"
{S_lex_ichar(DDADOT_TOK);return (yylval=DDADOT_TOK);}
YY_BREAK
case 44:
# line 199 "ilex.l"
{S_lex_ichar(DDHA_TOK); return (yylval = DDHA_TOK);}
YY_BREAK
case 45:
# line 200 "ilex.l"
{S_lex_ichar(DDHADOT_TOK);return (yylval=DDHADOT_TOK);}
YY_BREAK
case 46:
# line 201 "ilex.l"
{S_lex_ichar(NNA_TOK); return (yylval = NNA_TOK);}
YY_BREAK
case 47:
# line 202 "ilex.l"
{S_lex_ichar(TA_TOK); return (yylval = TA_TOK);}
YY_BREAK
case 48:
# line 203 "ilex.l"
{S_lex_ichar(THA_TOK); return (yylval = THA_TOK);}
YY_BREAK
case 49:
# line 204 "ilex.l"
{S_lex_ichar(DA_TOK); return (yylval = DA_TOK);}
YY_BREAK
case 50:
# line 205 "ilex.l"
{S_lex_ichar(DHA_TOK); return (yylval = DHA_TOK);}
YY_BREAK
case 51:
# line 206 "ilex.l"
{S_lex_ichar(NA_TOK); return (yylval = NA_TOK);}
YY_BREAK
case 52:
# line 207 "ilex.l"
{S_lex_ichar(PA_TOK); return (yylval = PA_TOK);}
YY_BREAK
case 53:
# line 208 "ilex.l"
{S_lex_ichar(PHA_TOK); return (yylval = PHA_TOK);}
YY_BREAK
case 54:
# line 209 "ilex.l"
{S_lex_ichar(PHADOT_TOK); return (yylval = PHADOT_TOK);}
YY_BREAK
case 55:
# line 210 "ilex.l"
{S_lex_ichar(BHA_TOK); return (yylval = BHA_TOK);}
YY_BREAK
case 56:
# line 211 "ilex.l"
{S_lex_ichar(BA_TOK); return (yylval = BA_TOK);}
YY_BREAK
case 57:
# line 212 "ilex.l"
{S_lex_ichar(MA_TOK); return (yylval = MA_TOK);}
YY_BREAK
case 58:
# line 213 "ilex.l"
{S_lex_ichar(YA_TOK); return (yylval = YA_TOK);}
YY_BREAK
case 59:
# line 214 "ilex.l"
{S_lex_ichar(RA_TOK); return (yylval = RA_TOK);}
YY_BREAK
case 60:
# line 215 "ilex.l"
{S_lex_ichar(VA_TOK); return (yylval = VA_TOK);}
YY_BREAK
case 61:
# line 216 "ilex.l"
{S_lex_ichar(SHHA_TOK); return (yylval = SHHA_TOK);}
YY_BREAK
case 62:
# line 217 "ilex.l"
{S_lex_ichar(SHA_TOK); return (yylval = SHA_TOK);}
YY_BREAK
case 63:
# line 218 "ilex.l"
{S_lex_ichar(SA_TOK); return (yylval = SA_TOK);}
YY_BREAK
case 64:
# line 219 "ilex.l"
{S_lex_ichar(HA_TOK); return (yylval = HA_TOK);}
YY_BREAK
case 65:
# line 220 "ilex.l"
{S_lex_ichar(LDA_TOK); return (yylval = LDA_TOK);}
YY_BREAK
case 66:
# line 221 "ilex.l"
{S_lex_ichar(LDA_TOK); return (yylval = LDA_TOK);}
YY_BREAK
case 67:
# line 222 "ilex.l"
{S_lex_ichar(LA_TOK); return (yylval = LA_TOK);}
YY_BREAK
case 68:
# line 223 "ilex.l"
{S_lex_ichar(KSHA_TOK); return (yylval = KSHA_TOK);}
YY_BREAK
case 69:
# line 224 "ilex.l"
{S_lex_ichar(KSHA_TOK); return (yylval = KSHA_TOK);}
YY_BREAK
case 70:
# line 225 "ilex.l"
{S_lex_ichar(GYA_TOK); return (yylval = GYA_TOK);}
YY_BREAK
case 71:
# line 227 "ilex.l"
{
switch(S_lang_tok) {
case TAMIL_TOK:
return (yylval = NYA_TOK);
break;
default:
/* unput('y'); ?? use yyless() here XXX */
yyless(1);
return (yylval = NA_TOK);
}
}
YY_BREAK
case 72:
# line 238 "ilex.l"
{ return (yylval = NNX_TOK);} /* Tamil Only */
YY_BREAK
case 73:
# line 240 "ilex.l"
{S_lex_ichar(RRA_TOK); return (yylval = RRA_TOK);}
YY_BREAK
case 74:
# line 242 "ilex.l"
{S_lex_ichar(AUM_TOK); return (yylval = AUM_TOK);}
YY_BREAK
case 75:
# line 243 "ilex.l"
{S_lex_ichar(SRI_TOK); return (yylval = SRI_TOK);}
YY_BREAK
case 76:
# line 244 "ilex.l"
{S_lex_ichar(RA_HALF_TOK);return (yylval=RA_HALF_TOK);}
YY_BREAK
case 77:
# line 245 "ilex.l"
{S_lex_ichar(ANUSVARA_TOK);return(yylval=ANUSVARA_TOK);}
YY_BREAK
case 78:
# line 246 "ilex.l"
{S_lex_ichar(VIRAAM_TOK);return(yylval=VIRAAM_TOK);}
YY_BREAK
case 79:
# line 247 "ilex.l"
{S_lex_ichar(CHANDRA_TOK);return(yylval= CHANDRA_TOK);}
YY_BREAK
case 80:
# line 248 "ilex.l"
{S_lex_ichar(CHANDRA_BN_TOK);return(yylval=CHANDRA_BN_TOK);}
YY_BREAK
case 81:
# line 249 "ilex.l"
{S_lex_ichar(AVAGRAHA_TOK);return(yylval=AVAGRAHA_TOK);}
YY_BREAK
case 82:
# line 251 "ilex.l"
{S_print("ichar \t");return (yylval = BLANK_TOK);}
YY_BREAK
case 83:
# line 252 "ilex.l"
{S_print("ichar \n");G_lineno++;return(yylval=NEWLINE_TOK);}
YY_BREAK
case 84:
# line 254 "ilex.l"
{ S_print("ichar {}");
if (in_letter()) {
return (yylval=NOLIG_TOK);
} else {
strcpy(G_endprev_str, yytext);
return (yylval=ENDPREV_TOK);
}
}
YY_BREAK
case 85:
# line 263 "ilex.l"
{ S_print("ichar .");
strcpy(G_endprev_str, yytext);
return (yylval=ENDPREV_TOK);
}
YY_BREAK
case 86:
# line 268 "ilex.l"
{
S_print("dcommand a-z");
BEGIN ITEXT;
return (COMMAND_TOK);
}
YY_BREAK
case 87:
# line 274 "ilex.l"
{
S_print("dcommand other");
process_otherchar('\\');
process_otherchar(yytext[0]);
BEGIN ITEXT;
}
YY_BREAK
case 88:
# line 281 "ilex.l"
{BEGIN ITEXT; return (S_lang_tok = ILANG_TOK);}
YY_BREAK
case 89:
# line 282 "ilex.l"
{BEGIN 0; return (S_lang_tok = ENDLANG_TOK);}
YY_BREAK
case 90:
# line 283 "ilex.l"
{BEGIN ITEXT; return (S_lang_tok = MARATHI_TOK);}
YY_BREAK
case 91:
# line 284 "ilex.l"
{BEGIN 0; return (S_lang_tok = ENDLANG_TOK);}
YY_BREAK
case 92:
# line 285 "ilex.l"
{BEGIN ITEXT; return (S_lang_tok = HINDI_TOK);}
YY_BREAK
case 93:
# line 286 "ilex.l"
{BEGIN 0; return (S_lang_tok = ENDLANG_TOK);}
YY_BREAK
case 94:
# line 287 "ilex.l"
{BEGIN ITEXT; return (S_lang_tok = TAMIL_TOK);}
YY_BREAK
case 95:
# line 288 "ilex.l"
{BEGIN 0; return (S_lang_tok = ENDLANG_TOK);}
YY_BREAK
case 96:
# line 289 "ilex.l"
{BEGIN ITEXT; return (S_lang_tok = SANSKRIT_TOK);}
YY_BREAK
case 97:
# line 290 "ilex.l"
{BEGIN 0; return (S_lang_tok = ENDLANG_TOK);}
YY_BREAK
case 98:
# line 291 "ilex.l"
{BEGIN ITEXT; return (S_lang_tok = BENGALI_TOK);}
YY_BREAK
case 99:
# line 292 "ilex.l"
{BEGIN 0; return (S_lang_tok = ENDLANG_TOK);}
YY_BREAK
case 100:
# line 293 "ilex.l"
{BEGIN ITEXT; return (S_lang_tok = TELUGU_TOK);}
YY_BREAK
case 101:
# line 294 "ilex.l"
{BEGIN 0; return (S_lang_tok = ENDLANG_TOK);}
YY_BREAK
case 102:
# line 295 "ilex.l"
{BEGIN ITEXT; return (S_lang_tok = MALAYALAM_TOK);}
YY_BREAK
case 103:
# line 296 "ilex.l"
{BEGIN 0; return (S_lang_tok = ENDLANG_TOK);}
YY_BREAK
case 104:
# line 297 "ilex.l"
{BEGIN ITEXT; return (S_lang_tok = GUJARATI_TOK);}
YY_BREAK
case 105:
# line 298 "ilex.l"
{BEGIN 0; return (S_lang_tok = ENDLANG_TOK);}
YY_BREAK
case 106:
# line 299 "ilex.l"
{BEGIN ITEXT; return (S_lang_tok = ORIYA_TOK);}
YY_BREAK
case 107:
# line 300 "ilex.l"
{BEGIN 0; return (S_lang_tok = ENDLANG_TOK);}
YY_BREAK
case 108:
# line 301 "ilex.l"
{BEGIN ITEXT; return (S_lang_tok = KANNADA_TOK);}
YY_BREAK
case 109:
# line 302 "ilex.l"
{BEGIN 0; return (S_lang_tok = ENDLANG_TOK);}
YY_BREAK
case 110:
# line 304 "ilex.l"
{yylval = ILANG_TOK; return SETIFM_TOK;}
YY_BREAK
case 111:
# line 305 "ilex.l"
{yylval = MARATHI_TOK; return SETIFM_TOK;}
YY_BREAK
case 112:
# line 306 "ilex.l"
{yylval = HINDI_TOK; return SETIFM_TOK;}
YY_BREAK
case 113:
# line 307 "ilex.l"
{yylval = TAMIL_TOK; return SETIFM_TOK;}
YY_BREAK
case 114:
# line 308 "ilex.l"
{yylval = SANSKRIT_TOK; return SETIFM_TOK;}
YY_BREAK
case 115:
# line 309 "ilex.l"
{yylval = BENGALI_TOK; return SETIFM_TOK;}
YY_BREAK
case 116:
# line 310 "ilex.l"
{yylval = TELUGU_TOK; return SETIFM_TOK;}
YY_BREAK
case 117:
# line 311 "ilex.l"
{yylval = MALAYALAM_TOK; return SETIFM_TOK;}
YY_BREAK
case 118:
# line 312 "ilex.l"
{yylval = GUJARATI_TOK; return SETIFM_TOK;}
YY_BREAK
case 119:
# line 313 "ilex.l"
{yylval = ORIYA_TOK; return SETIFM_TOK;}
YY_BREAK
case 120:
# line 314 "ilex.l"
{yylval = KANNADA_TOK; return SETIFM_TOK;}
YY_BREAK
case 121:
# line 316 "ilex.l"
{yylval = ILANG_TOK; return SETFONT_TOK;}
YY_BREAK
case 122:
# line 317 "ilex.l"
{yylval = HINDI_TOK; return SETFONT_TOK;}
YY_BREAK
case 123:
# line 318 "ilex.l"
{yylval = TAMIL_TOK; return SETFONT_TOK;}
YY_BREAK
case 124:
# line 319 "ilex.l"
{yylval = MARATHI_TOK; return SETFONT_TOK;}
YY_BREAK
case 125:
# line 320 "ilex.l"
{yylval = SANSKRIT_TOK; return SETFONT_TOK;}
YY_BREAK
case 126:
# line 321 "ilex.l"
{yylval = BENGALI_TOK; return SETFONT_TOK;}
YY_BREAK
case 127:
# line 322 "ilex.l"
{yylval = TELUGU_TOK; return SETFONT_TOK;}
YY_BREAK
case 128:
# line 323 "ilex.l"
{yylval = MALAYALAM_TOK;return SETFONT_TOK;}
YY_BREAK
case 129:
# line 324 "ilex.l"
{yylval = GUJARATI_TOK; return SETFONT_TOK;}
YY_BREAK
case 130:
# line 325 "ilex.l"
{yylval = ORIYA_TOK; return SETFONT_TOK;}
YY_BREAK
case 131:
# line 326 "ilex.l"
{yylval = KANNADA_TOK; return SETFONT_TOK;}
YY_BREAK
case 132:
# line 328 "ilex.l"
{S_print("got newline\n");G_lineno++; ECHO; }
YY_BREAK
case 133:
# line 329 "ilex.l"
{S_print("everything else! got .");ECHO; }
YY_BREAK
case 134:
# line 331 "ilex.l"
ECHO;
YY_BREAK
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(ITEXT):
case YY_STATE_EOF(DCOMMAND):
yyterminate();
case YY_END_OF_BUFFER:
{
/* amount of text matched not including the EOB char */
int yy_amount_of_matched_text = yy_cp - yytext - 1;
/* undo the effects of YY_DO_BEFORE_ACTION */
*yy_cp = yy_hold_char;
/* note that here we test for yy_c_buf_p "<=" to the position
* of the first EOB in the buffer, since yy_c_buf_p will
* already have been incremented past the NUL character
* (since all states make transitions on EOB to the end-
* of-buffer state). Contrast this with the test in yyinput().
*/
if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
/* this was really a NUL */
{
yy_state_type yy_next_state;
yy_c_buf_p = yytext + yy_amount_of_matched_text;
yy_current_state = yy_get_previous_state();
/* okay, we're now positioned to make the
* NUL transition. We couldn't have
* yy_get_previous_state() go ahead and do it
* for us because it doesn't know how to deal
* with the possibility of jamming (and we
* don't want to build jamming into it because
* then it will run more slowly)
*/
yy_next_state = yy_try_NUL_trans( yy_current_state );
yy_bp = yytext + YY_MORE_ADJ;
if ( yy_next_state )
{
/* consume the NUL */
yy_cp = ++yy_c_buf_p;
yy_current_state = yy_next_state;
goto yy_match;
}
else
{
yy_cp = yy_last_accepting_cpos;
yy_current_state = yy_last_accepting_state;
goto yy_find_action;
}
}
else switch ( yy_get_next_buffer() )
{
case EOB_ACT_END_OF_FILE:
{
yy_did_buffer_switch_on_eof = 0;
if ( yywrap() )
{
/* note: because we've taken care in
* yy_get_next_buffer() to have set up yytext,
* we can now set up yy_c_buf_p so that if some
* total hoser (like flex itself) wants
* to call the scanner after we return the
* YY_NULL, it'll still work - another YY_NULL
* will get returned.
*/
yy_c_buf_p = yytext + YY_MORE_ADJ;
yy_act = YY_STATE_EOF((yy_start - 1) / 2);
goto do_action;
}
else
{
if ( ! yy_did_buffer_switch_on_eof )
YY_NEW_FILE;
}
}
break;
case EOB_ACT_CONTINUE_SCAN:
yy_c_buf_p = yytext + yy_amount_of_matched_text;
yy_current_state = yy_get_previous_state();
yy_cp = yy_c_buf_p;
yy_bp = yytext + YY_MORE_ADJ;
goto yy_match;
case EOB_ACT_LAST_MATCH:
yy_c_buf_p =
&yy_current_buffer->yy_ch_buf[yy_n_chars];
yy_current_state = yy_get_previous_state();
yy_cp = yy_c_buf_p;
yy_bp = yytext + YY_MORE_ADJ;
goto yy_find_action;
}
break;
}
default:
#ifdef FLEX_DEBUG
printf( "action # %d\n", yy_act );
#endif
YY_FATAL_ERROR(
"fatal flex scanner internal error--no action found" );
}
}
}
/* yy_get_next_buffer - try to read in a new buffer
*
* synopsis
* int yy_get_next_buffer();
*
* returns a code representing an action
* EOB_ACT_LAST_MATCH -
* EOB_ACT_CONTINUE_SCAN - continue scanning from current position
* EOB_ACT_END_OF_FILE - end of file
*/
static int yy_get_next_buffer()
{
register YY_CHAR *dest = yy_current_buffer->yy_ch_buf;
register YY_CHAR *source = yytext - 1; /* copy prev. char, too */
register int number_to_move, i;
int ret_val;
if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
YY_FATAL_ERROR(
"fatal flex scanner internal error--end of buffer missed" );
/* try to read more data */
/* first move last chars to start of buffer */
number_to_move = yy_c_buf_p - yytext;
for ( i = 0; i < number_to_move; ++i )
*(dest++) = *(source++);
if ( yy_current_buffer->yy_eof_status != EOF_NOT_SEEN )
/* don't do the read, it's not guaranteed to return an EOF,
* just force an EOF
*/
yy_n_chars = 0;
else
{
int num_to_read = yy_current_buffer->yy_buf_size - number_to_move - 1;
if ( num_to_read > YY_READ_BUF_SIZE )
num_to_read = YY_READ_BUF_SIZE;
else if ( num_to_read <= 0 )
YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" );
/* read in more data */
YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
yy_n_chars, num_to_read );
}
if ( yy_n_chars == 0 )
{
if ( number_to_move == 1 )
{
ret_val = EOB_ACT_END_OF_FILE;
yy_current_buffer->yy_eof_status = EOF_DONE;
}
else
{
ret_val = EOB_ACT_LAST_MATCH;
yy_current_buffer->yy_eof_status = EOF_PENDING;
}
}
else
ret_val = EOB_ACT_CONTINUE_SCAN;
yy_n_chars += number_to_move;
yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
/* yytext begins at the second character in yy_ch_buf; the first
* character is the one which preceded it before reading in the latest
* buffer; it needs to be kept around in case it's a newline, so
* yy_get_previous_state() will have with '^' rules active
*/
yytext = &yy_current_buffer->yy_ch_buf[1];
return ( ret_val );
}
/* yy_get_previous_state - get the state just before the EOB char was reached
*
* synopsis
* yy_state_type yy_get_previous_state();
*/
static yy_state_type yy_get_previous_state()
{
register yy_state_type yy_current_state;
register YY_CHAR *yy_cp;
yy_current_state = yy_start;
for ( yy_cp = yytext + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
{
register YY_CHAR yy_c = (*yy_cp ? yy_ec[*yy_cp] : 1);
if ( yy_accept[yy_current_state] )
{
yy_last_accepting_state = yy_current_state;
yy_last_accepting_cpos = yy_cp;
}
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = yy_def[yy_current_state];
if ( yy_current_state >= 395 )
yy_c = yy_meta[yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
}
return ( yy_current_state );
}
/* yy_try_NUL_trans - try to make a transition on the NUL character
*
* synopsis
* next_state = yy_try_NUL_trans( current_state );
*/
#ifdef YY_USE_PROTOS
static yy_state_type yy_try_NUL_trans( register yy_state_type yy_current_state )
#else
static yy_state_type yy_try_NUL_trans( yy_current_state )
register yy_state_type yy_current_state;
#endif
{
register int yy_is_jam;
register YY_CHAR *yy_cp = yy_c_buf_p;
register YY_CHAR yy_c = 1;
if ( yy_accept[yy_current_state] )
{
yy_last_accepting_state = yy_current_state;
yy_last_accepting_cpos = yy_cp;
}
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = yy_def[yy_current_state];
if ( yy_current_state >= 395 )
yy_c = yy_meta[yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
yy_is_jam = (yy_current_state == 394);
return ( yy_is_jam ? 0 : yy_current_state );
}
#ifdef YY_USE_PROTOS
static void yyunput( YY_CHAR c, register YY_CHAR *yy_bp )
#else
static void yyunput( c, yy_bp )
YY_CHAR c;
register YY_CHAR *yy_bp;
#endif
{
register YY_CHAR *yy_cp = yy_c_buf_p;
/* undo effects of setting up yytext */
*yy_cp = yy_hold_char;
if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
{ /* need to shift things up to make room */
register int number_to_move = yy_n_chars + 2; /* +2 for EOB chars */
register YY_CHAR *dest =
&yy_current_buffer->yy_ch_buf[yy_current_buffer->yy_buf_size + 2];
register YY_CHAR *source =
&yy_current_buffer->yy_ch_buf[number_to_move];
while ( source > yy_current_buffer->yy_ch_buf )
*--dest = *--source;
yy_cp += dest - source;
yy_bp += dest - source;
yy_n_chars = yy_current_buffer->yy_buf_size;
if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
YY_FATAL_ERROR( "flex scanner push-back overflow" );
}
if ( yy_cp > yy_bp && yy_cp[-1] == '\n' )
yy_cp[-2] = '\n';
*--yy_cp = c;
/* note: the formal parameter *must* be called "yy_bp" for this
* macro to now work correctly
*/
YY_DO_BEFORE_ACTION; /* set up yytext again */
}
#ifdef __cplusplus
static int yyinput()
#else
static int input()
#endif
{
int c;
YY_CHAR *yy_cp = yy_c_buf_p;
*yy_cp = yy_hold_char;
if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
{
/* yy_c_buf_p now points to the character we want to return.
* If this occurs *before* the EOB characters, then it's a
* valid NUL; if not, then we've hit the end of the buffer.
*/
if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
/* this was really a NUL */
*yy_c_buf_p = '\0';
else
{ /* need more input */
yytext = yy_c_buf_p;
++yy_c_buf_p;
switch ( yy_get_next_buffer() )
{
case EOB_ACT_END_OF_FILE:
{
if ( yywrap() )
{
yy_c_buf_p = yytext + YY_MORE_ADJ;
return ( EOF );
}
YY_NEW_FILE;
#ifdef __cplusplus
return ( yyinput() );
#else
return ( input() );
#endif
}
break;
case EOB_ACT_CONTINUE_SCAN:
yy_c_buf_p = yytext + YY_MORE_ADJ;
break;
case EOB_ACT_LAST_MATCH:
#ifdef __cplusplus
YY_FATAL_ERROR( "unexpected last match in yyinput()" );
#else
YY_FATAL_ERROR( "unexpected last match in input()" );
#endif
}
}
}
c = *yy_c_buf_p;
yy_hold_char = *++yy_c_buf_p;
return ( c );
}
#ifdef YY_USE_PROTOS
void yyrestart( FILE *input_file )
#else
void yyrestart( input_file )
FILE *input_file;
#endif
{
yy_init_buffer( yy_current_buffer, input_file );
yy_load_buffer_state();
}
#ifdef YY_USE_PROTOS
void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
#else
void yy_switch_to_buffer( new_buffer )
YY_BUFFER_STATE new_buffer;
#endif
{
if ( yy_current_buffer == new_buffer )
return;
if ( yy_current_buffer )
{
/* flush out information for old buffer */
*yy_c_buf_p = yy_hold_char;
yy_current_buffer->yy_buf_pos = yy_c_buf_p;
yy_current_buffer->yy_n_chars = yy_n_chars;
}
yy_current_buffer = new_buffer;
yy_load_buffer_state();
/* we don't actually know whether we did this switch during
* EOF (yywrap()) processing, but the only time this flag
* is looked at is after yywrap() is called, so it's safe
* to go ahead and always set it.
*/
yy_did_buffer_switch_on_eof = 1;
}
#ifdef YY_USE_PROTOS
void yy_load_buffer_state( void )
#else
void yy_load_buffer_state()
#endif
{
yy_n_chars = yy_current_buffer->yy_n_chars;
yytext = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
yyin = yy_current_buffer->yy_input_file;
yy_hold_char = *yy_c_buf_p;
}
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
#else
YY_BUFFER_STATE yy_create_buffer( file, size )
FILE *file;
int size;
#endif
{
YY_BUFFER_STATE b;
b = (YY_BUFFER_STATE) malloc( sizeof( struct yy_buffer_state ) );
if ( ! b )
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
b->yy_buf_size = size;
/* yy_ch_buf has to be 2 characters longer than the size given because
* we need to put in 2 end-of-buffer characters.
*/
b->yy_ch_buf = (YY_CHAR *) malloc( (unsigned) (b->yy_buf_size + 2) );
if ( ! b->yy_ch_buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
yy_init_buffer( b, file );
return ( b );
}
#ifdef YY_USE_PROTOS
void yy_delete_buffer( YY_BUFFER_STATE b )
#else
void yy_delete_buffer( b )
YY_BUFFER_STATE b;
#endif
{
if ( b == yy_current_buffer )
yy_current_buffer = (YY_BUFFER_STATE) 0;
free( (char *) b->yy_ch_buf );
free( (char *) b );
}
#ifdef YY_USE_PROTOS
void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
#else
void yy_init_buffer( b, file )
YY_BUFFER_STATE b;
FILE *file;
#endif
{
b->yy_input_file = file;
/* we put in the '\n' and start reading from [1] so that an
* initial match-at-newline will be true.
*/
b->yy_ch_buf[0] = '\n';
b->yy_n_chars = 1;
/* we always need two end-of-buffer characters. The first causes
* a transition to the end-of-buffer state. The second causes
* a jam in that state.
*/
b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
b->yy_ch_buf[2] = YY_END_OF_BUFFER_CHAR;
b->yy_buf_pos = &b->yy_ch_buf[1];
b->yy_eof_status = EOF_NOT_SEEN;
}
# line 331 "ilex.l"
static S_lex_ichar(int t)
{
#ifdef DEBUG
if (t > 255) fprintf(stderr, "LEXER: have seen <%s> tok %d (I %d)\n",
yytext, t, _I_(t));
else fprintf(stderr, "LEXER: seen char %c (dec %d)\n", t, t);
#endif /*DEBUG*/
return TRUE;
}
static S_print(char* t)
{
#ifdef DEBUG
fprintf(stderr, "LEXERprint: have seen <%s> rule is %s\n",
yytext, t);
#endif /*DEBUG*/
return TRUE;
}
static S_skipcomments()
{
int c;
if (in_letter()) {
G_endprev_str[0] = '\0';
return (yylval=ENDPREV_TOK);
} else {
/* this the next time around, eat up the comment */
putchar('%');
while ( (c = input()) != EOF && c != '\n')
putchar(c);
G_lineno++;
return (yylval=NEWLINE_TOK);
}
}
#ifdef NOLEX
/* if the system is missing lex, add these functions */
#ifdef yywrap
#undef yywrap
#endif
int yywrap() { return 1; }
int yyless(int n) /* NOT TESTED!*/
{
int i;
extern int yyleng;
for (i = yyleng - 1; i >= n; i --) unput(yytext[i]);
}
#endif